<template>
  <view class="coupon-container">
    <view class="tab-bar">
      <view 
        v-for="(tab, index) in tabs" 
        :key="index"
        :class="['tab-item', currentTab === index ? 'active' : '']"
        @click="currentTab = index"
      >
        {{ tab }}
      </view>
    </view>
    
    <view class="coupon-list">
      <view class="empty-tip">暂无优惠券</view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      currentTab: 0,
      tabs: ['未使用', '已使用', '已过期']
    }
  }
}
</script>

<style lang="scss">
.coupon-container {
  min-height: 100vh;
  background: #f5f5f5;
  
  .tab-bar {
    display: flex;
    background: #fff;
    padding: 20rpx 0;
    
    .tab-item {
      flex: 1;
      text-align: center;
      font-size: 28rpx;
      color: #333;
      
      &.active {
        color: #ff4444;
      }
    }
  }
  
  .empty-tip {
    text-align: center;
    color: #999;
    padding: 100rpx 0;
  }
}
</style> 